package coo.exception;

import org.apache.log4j.Logger;

public class Logggg {
    public static void main(String[] args) {
        Logger logger = Logger.getLogger("");
        Student student = new Student();
        logger.debug("开始设置性别");
        try {
            student.setSex("sdfg");
        } catch (Exception e) {
            logger.info(e.getMessage());
            e.printStackTrace();
            logger.error("性别错了!!!");
        }
    }
}
